package com.kuang.blog.controller;


import com.kuang.blog.entity.Account;
import com.kuang.blog.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 狂神说
 * @since 2022-09-21
 */
@RestController
@RequestMapping("/blog/account")
public class AccountController {
    @Autowired
    private AccountService accountService;

    @GetMapping("list")
    public List<Account> getList() {
        List<Account> list = accountService.list(null);
        return list;
    }
}

